<div class="form-group col-md-12 {$form[type].extra_class|default=''}" id="form_group_{$form[type].name}">
  <label for="{$form[type].name}">{$form[type].title}</label>
  <div class="form-controls clearfix">
    {volist name="$form[type].options" id="option"}
    <div class="custom-control custom-radio custom-control-inline">
      <input type="radio" 
        class="custom-control-input" 
        name="{$form[type].name}" 
        id="{$form[type].name}{$i}" 
        value="{$key}"
        {php}$key = (string)$key;{/php} {eq name="key" value="$form[type].value|default=''"}checked{/eq} {$form[type].extra_attr|default=''}>
      <label class="custom-control-label" for="{$form[type].name}{$i}">{$option}</label>
    </div>
    {/volist}

    {notempty name="form[type].remark"}
    <small class="form-text text-muted">{$form[type].remark|raw|clear_js}</small>
    {/notempty}
  </div>
</div>